home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / exists.doc < prev    next >
Text File  |  1986-10-01  |  824b  |  39 lines

  1.  
  2.  
  3.         NAME
  4.                 exists -- see if a file exists
  5.  
  6.         SYNOPSIS
  7.                 r = exists(name);
  8.                 int r;          returns FALSE if not found, else TRUE
  9.                 char *name;     filename to check
  10.  
  11.  
  12.         DESCRIPTION
  13.         If the specified filename, which may include drive and
  14.         directory, is not found, then a value of zero (FALSE)
  15.         is returned.  Else, one (TRUE) is returned.  This
  16.         test does not take into consideration any attributes on
  17.         the file, so that an fopen() call may still fail later.
  18.  
  19.  
  20.         EXAMPLE
  21.     
  22.                if(exists("a:foo.bar")) puts("File exists!");
  23.                else puts("File does not exist");
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.         This function is found in SMDLx.LIB for the Datalight Compiler
  39.